* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body styles removed to avoid conflict with main dashboard background */

#blocklist {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.main-card {
    width: 686px;
    height: 691px;
    background: #C54D4E;
    border-radius: 30px;
    padding: 50px 89px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header Section */
.header-section {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 19px;
    margin-bottom: 24px;
}

.page-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 32px;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    line-height: 1;
    display: inline-block;
}

.counter-badge {
    width: 61.11px;
    height: 61.11px;
    background: transparent;
    border: 5px solid #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: #FFFFFF;
}

/* Input Section */
.input-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    width: 100%;
}

.url-input {
    flex: 1;
    min-width: 0;
    height: 61px;
    background: #FFFFFF;
    border: none;
    border-radius: 30px;
    padding: 0 25px;
    font-family: 'Roboto', sans-serif;
    font-weight: 200;
    font-size: 18px;
    color: #333333;
    outline: none;
}

.url-input::placeholder {
    color: #A9A9A9;
}

.add-btn {
    width: 143px;
    height: 61px;
    background: #FFFFFF;
    border: none;
    border-radius: 30px;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 25px;
    color: #333333;
    cursor: pointer;
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 18px rgba(0, 0, 0, 0.3);
}

.add-btn:active {
    transform: translateY(0);
    box-shadow: 0 12px 12px rgba(0, 0, 0, 0.2);
}

/* Arrow Container */
.arrow-container {
    position: absolute;
    left: -120px;
    top: 280px;
    width: 100px;
    height: 180px;
    z-index: 10;
}

.arrow-image {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
    animation: arrowFadeIn 0.8s ease-out forwards, arrowFloat 2.5s ease-in-out 0.8s infinite;
}

/* Arrow animations */
@keyframes arrowFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes arrowFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(-2deg);
    }
}



/* Empty State */
.empty-state {
    width: 100%;
    height: 340px;
    background: #F86466;
    border: 1px solid #F14C4E;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 53px;
}

.empty-icon {
    width: 127px;
    height: 127px;
    margin-bottom: 17px;
}

.empty-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 25px;
    color: #FFFFFF;
    text-align: center;
    line-height: 1.4;
}


/* Sites Container */
.sites-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.sites-list {
    height: auto;
    max-height: 345px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 15px;
    /* Default padding without scrollbar */
    transition: padding-right 0.3s ease;
    /* Smooth padding change */
}

.sites-list.has-scrollbar {
    padding-right: 45px;
    /* Expanded padding for scrollbar */
}

/* Custom Scrollbar for Webkit browsers */
.sites-list::-webkit-scrollbar {
    width: 35px;
    display: block;
}

.sites-list::-webkit-scrollbar-track {
    background: rgba(61, 16, 16, 0.4);
    border-radius: 20px;
}

.sites-list::-webkit-scrollbar-thumb {
    background: #FF7E80;
    border-radius: 20px;
}

.sites-list::-webkit-scrollbar-thumb:hover {
    background: #FF9294;
}

/* Site Item */
.site-item {
    width: 100%;
    height: 60px;
    background: #F86466;
    border: 1px solid #F14C4E;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 20px 0 33px;
    margin-bottom: 9px;
    position: relative;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Note: shrink state handled automatically by width:100% now */
.sites-list.has-scrollbar .site-item {
    padding-right: 10px;
}

.site-item:last-child {
    margin-bottom: 0;
}

.site-item:hover {
    background: #FF7779;
    transform: translateX(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.site-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-right: 15px;
}

.site-icon svg {
    width: 100%;
    height: 100%;
}

.site-item.pending {
    opacity: 0.7;
}

.site-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.site-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-label {
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-transform: none;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

.delete-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.25));
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
}

.delete-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

.delete-btn:active {
    transform: scale(0.8) rotate(90deg);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2)) brightness(0.8);
}

.delete-btn svg {
    width: 100%;
    height: 100%;
}

/* Animation for adding/removing items */
@keyframes premiumAdd {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes premiumRemove {
    0% {
        opacity: 1;
        transform: translateX(0);
        max-height: 60px;
        margin-bottom: 9px;
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: translateX(40px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        filter: blur(4px);
        pointer-events: none;
    }
}

.site-item.adding {
    animation: premiumAdd 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.site-item.removing {
    animation: premiumRemove 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    overflow: hidden;
}

/* Extension Notice (Website Only) */
.extension-notice {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 12px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: premiumAdd 0.5s ease;
}

.notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notice-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 11px;
    color: #FFFFFF;
    letter-spacing: 0.8px;
    line-height: 1.4;
}

.notice-link {
    color: #FFFFFF;
    text-decoration: underline;
    font-weight: 900;
    margin-left: 4px;
    cursor: pointer;
}

/* Install Mode Button */
.add-btn.install-mode {
    font-size: 13px !important;
    line-height: 1.2;
    background: #FFFFFF !important;
    color: #F86466 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10px;
}